from django.db import models


class Article(models.Model):
    title = models.CharField('标题', max_length=70)
    body = models.TextField('内容', max_length=200, blank=True)
    created_time = models.DateTimeField('发布时间',auto_now_add=True)

    class Meta:
        verbose_name = '文章'#显示在add后面
        verbose_name_plural = '文章'#显示在左侧

    def __str__(self):
        return self.title


# Create your models here.
